@layout("/common/_container.html",{js:["/assets/modular/system/dsstoreBillDelivery/dsstoreBillDelivery.js"],css:["/assets/common/css/beautiful.css"]}){


<style type="text/css">
    /*.layui-table-page{*/
    /*    display:none;*/
    /*}*/

    .dm {
        width: 35px;
    }
    /* ::-webkit-scrollbar {
        height: 16px!important;
        width: 16px!important;
    } */
    .layui-form-label{
        width: 70px !important;
    }
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">业务日期</label>
                                <div class="layui-inline lablew">
                                    <input id="dateStr" type="text" value="${dateStr}" class="layui-input" placeholder="业务日期">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">门店</label>
                                <div class="layui-input-inline">
                                    <select name="otherSideCode" lay-filter="language" id="otherSideCode" lay-search="">
                                        <option value=''>全部门店</option>
                                    </select>
                                </div>
                                
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">门店名称</label>
                                <div class="layui-inline lablew" style="width: 150px;">
                                    <input id="otherSideName" type="text" class="layui-input" placeholder="门店名模糊查询">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div class="layui-inline">
                                    <label class="layui-form-label">单据类型</label>
                                    <div class="layui-inline lablew" style="width: 120px;">
                                        <select name="billBusTypeId" lay-filter="billBusTypeId" id="billBusTypeId"
                                            lay-search="itemSmallClassCode">
                                            <option value="">全部单据类型</option>
                                            <option value="0430_0010_0400">中心统配返库</option>
                                            <option value="0430_0020_0100">中心统配出库</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

<!--                            <div class="layui-inline">-->
<!--                                <div class="layui-inline" style="display: inline-block">-->
<!--                                    <select id="itemSmallClassCode" name="itemSmallClassCode" lay-filter="itemSmallClassCode"-->
<!--                                            lay-search="itemSmallClassCode">-->
<!--                                        <option value="">全部品类</option>-->
<!--                                    </select>-->
<!--                                </div>-->
<!--                            </div>-->
                            <div class="layui-inline">
                                <div class="layui-inline">
                                    <label class="layui-form-label">品类类别</label>
                                    <div class="layui-inline lablew" style="width: 150px;">
                                        <select id="itemCode" name="itemCode" lay-filter="itemCode"
                                        lay-search="itemCode">
                                            <option value="">全部品类</option>
                                            <option value="1104039" selected>川香酥肉（1kg）</option>
                                            <option value="1104072">五花肉（串）</option>
                                            <option value="1000848">调理梅肉块</option>
                                            <option value="1000840">大袋脆皮肠</option>
                                        </select>
                                    </div>
<!--                                    <select xm-select="itemCode" lay-filter="itemCode" id="itemCode" name="itemCode"-->
<!--                                            xm-select-search="" xm-select-search-type="dl" style="width: 200px">-->
<!--                                        <option value="">全部品项</option>-->
<!--                                    </select>-->
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div class="layui-inline">
                                    <label class="layui-form-label">审核状态</label>
                                    <div class="layui-inline lablew" style="width: 110px;">
                                        <select name="status" lay-filter="status" id="status"
                                            lay-search="itemSmallClassCode">
                                            <option value="">全部审核状态</option>
                                            <option value="0">未审核</option>
                                            <option value="1">已审核</option>
                                        </select>
                                    </div>
                                    
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div class="layui-inline">
                                    <label class="layui-form-label">数据来源</label>
                                    <div class="layui-input-inline">
                                        <select name="delFlag" lay-filter="delFlag" id="delFlag"
                                            lay-search="delFlag">
                                            <option value="0" selected>现有数据</option>
                                            <option value="1">已删数据</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn layui-btn-sm marrig">搜索</button>

                                <button id="batchAudit" class="layui-btn layui-btn-sm infobtn">批量确认审核</button>
                                <button id="batchExport" class="layui-btn layui-btn-sm">批量导出数据</button>
                                <button id="batchDel" class="layui-btn layui-btn-sm">批量删除</button>
                                <button id="batchRecover" class="layui-btn layui-btn-sm">批量恢复</button>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">总计</label>
                                <div class="layui-inline lablew">
                                    <input id="totalNum" name="name" type="text" class="layui-input" value="" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">选中</label>
                                <div class="layui-input-inline">
                                    <input id="selectedNum" name="name" type="text" class="layui-input" readonly/>
                                </div>
                                
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">剩余</label>
                                <div class="layui-inline lablew" style="width: 120px;">
                                    <input id="lastNum" name="name" type="text" class="layui-input" readonly/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- <div class="demoTable">
                       <button class="layui-btn" data-type="getCheckData">获取选中行数据</button>
                       <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>
                       <button class="layui-btn" data-type="isAll">验证是否全选</button>
                        <span>总计</span>
                        <div class="layui-inline">
                            <input id="totalNum" name="name" type="text" class="layui-input" value="" readonly/>
                        </div>
                        <span>选中</span>
                        <div class="layui-inline">
                            <input id="selectedNum" name="name" type="text" class="layui-input" readonly/>
                        </div>
                        <span>剩余</span>
                        <div class="layui-inline" style="display: inline-block">
                            <input id="lastNum" name="name" type="text" class="layui-input" readonly/>
                        </div>
                    </div> -->
                    <table class="layui-table" id="dsstoreBillDeliveryTable" lay-filter="dsstoreBillDeliveryTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
<!--    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>-->
{{#  if(d.delFlag == 0){ }}
    {{# if(d.status!=1){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="audit">审核</a>
    {{# } }}
{{#  } }}

{{#  if(d.delFlag == 1){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="recover">恢复</a>
{{#  } }}


</script>

<script type="text/html" id="indexTpl">
    {{d.LAY_TABLE_INDEX+1}}
</script>

<script id="amountTpl" type="text/html">
    {{# if(d.billBusTypeId=="0430_0010_0400"){ }}
    {{d.inBusAmount|| 0}}
    {{# } else if(d.billBusTypeId=="0430_0020_0100"){ }}
    {{d.outBusAmount}}
    {{# } }}

</script>
<script id="statusTpl" type="text/html">
    {{# if(d.status==1){ }}
    已审核
    {{# } else{ }}
    未审核
    {{# } }}
</script>


@}
